#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_MyMap.h"
#include "MyView.h"
#include "MyScene.h"
#include "MyTileSources.h"
#include "MyMap_global.h"
class QGLWidget;
class HttpLoader;

class MyMap : public QMainWindow
{
	Q_OBJECT

public:
	MyMap(QWidget *parent = Q_NULLPTR);
	~MyMap();
	void InitMap();
	void MouseMovew();
	void ScaleChange();
private slots:
    void UpdateMap();
	void ShowImage();
	void ShowImageWithoutNotes();
	void ShowVectorTile();
	void ShowTerrian(); 
	void ShowTerrianWithoutNotes();
signals:
	void test_sig();
	
private:
	Ui::MyMapClass ui;

	MyView* m_pView;
	MyScene* m_pScene;

	QGLWidget * m_pGLWidget;
	MapStatus * m_pMapStatus;
	HttpLoader * m_pDownLoader;
	MyTileSources* m_pMyTileSources;

};
